import request from "@/utils/request";

// 查询地图服务列表
export const getMapInfoList = (params = {}) =>
    request({
        url: "/business/mapInfo/list",
        method: "get",
        params: params,
    });

// 获取地图服务详细信息
export const getMapInfo = (params) =>
    request({
        url: `/business/mapInfo/${params}`,
        method: "get",
    });

// 新增地图服务
export const addMapInfo = (params = {}) =>
    request({
        url: "/business/mapInfo",
        method: "post",
        data: params,
    });

// 修改地图服务
export const updateMapInfo = (params = {}) =>
    request({
        url: "/business/mapInfo",
        method: "put",
        data: params,
    });

// 删除地图服务
export const deleteMapInfo = (params) =>
    request({
        url: "/business/mapInfo/",
        method: "delete",
        data: params,
    });